Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added benchmarking capabilities for the mongodb benchmark #23

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

anish-palakurthi
Copy link

@anish-palakurthi anish-palakurthi commented Nov 17, 2024

Run

make docker
make install-mongodb
make benchmark-mongodb

@dataclass(frozen=True)
class BenchmarkConfig(ConfigBase):

recordCount: int = 1000000
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please use lower snake case instead of camel case, i.e. record_count
note: Pascal case is fine for class names as you have done

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, after you make the above fix, please run make defaults to generate a new defaults.yaml and then commit those changes

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, it does not look like you use these configuration options at all anywhere
Please use them to configure the mongodb benchmark

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make defaults is consistently failing with this:

Traceback (most recent call last):
  File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
  File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
    exec(code, run_globals)
  File "/home/anish/KernMLOps/python/kernmlops/__main__.py", line 3, in <module>
    import cli
  File "/home/anish/KernMLOps/python/kernmlops/cli/__init__.py", line 7, in <module>
    import data_collection
  File "/home/anish/KernMLOps/python/kernmlops/data_collection/__init__.py", line 4, in <module>
    from data_collection import bpf_instrumentation as bpf
  File "/home/anish/KernMLOps/python/kernmlops/data_collection/bpf_instrumentation/__init__.py", line 5, in <module>
    from data_collection.bpf_instrumentation.bpf_hook import BPFProgram
  File "/home/anish/KernMLOps/python/kernmlops/data_collection/bpf_instrumentation/bpf_hook.py", line 4, in <module>
    from data_schema import CollectionTable
  File "/home/anish/KernMLOps/python/kernmlops/data_schema/__init__.py", line 7, in <module>
    from data_schema import perf
  File "/home/anish/KernMLOps/python/kernmlops/data_schema/perf/__init__.py", line 3, in <module>
    from data_schema.perf.perf_schema import (
  File "/home/anish/KernMLOps/python/kernmlops/data_schema/perf/perf_schema.py", line 3, in <module>
    from typing import Protocol, override
ImportError: cannot import name 'override' from 'typing' (/usr/lib/python3.10/typing.py)

run_gapbs.sh Outdated Show resolved Hide resolved
run_gapbs.sh Outdated Show resolved Hide resolved
run_redis.sh Outdated Show resolved Hide resolved
@patrickkenney9801
Copy link
Collaborator

Please also run make format followed by make lint and fix any issues that appear in the python code

@patrickkenney9801
Copy link
Collaborator

We should probably meet sometime early next week to discuss what all of these scripts do and why they are needed in the codebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants